#include "Pixie.h"

generic configuration BitsToByte(priority_t PRIORITY, uint8_t bitMask) {
  provides interface PixieSink as Input;
  uses interface PixieSink as Output;

} implementation {

  components new BitsToByteP(bitMask);
  components new PixieStageWrapperC(PRIORITY, "BitsToByte") as Wrapper;

  Input = Wrapper.Input;
  Output = BitsToByteP.PixieSink;

  Wrapper.PixieStage -> BitsToByteP;

  components PixieC;
  BitsToByteP.PixieMemAlloc -> PixieC;

}
